<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head lang="en">
		<meta charset="utf-8" />
		<title>所有商品</title>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>frontPage/css/public.css"/>
		<link rel="stylesheet" type="text/css" href="<%=basePath%>frontPage/css/proList.css"/>
	</head>
	<body>
		<!------------------------------head------------------------------>
		<jsp:include page="header.jsp"/>
		<!------------------------------banner------------------------------>
		<div class="banner">
			<a href="#"><img src="<%=basePath%>images/46b8b0f3-b877-4c17-b935-cef045a9c02f.jpg"/></a>
		</div>
		<!-----------------address------------------------------->
		<div class="address">
			<div class="wrapper clearfix">
				<a href="#">首页</a>
				<span>/</span>
				<a href=""></a>
				<span>/</span>
				<a href="" class="on">商品列表</a>
			</div>
		</div>
		<!-------------------current---------------------->
		<div class="current">
			<div class="wrapper clearfix">
				<h3 class="fl">商品列表</h3> 
				<div class="fr choice">
					<p class="default">排序方式</p>
					<ul class="select">
						<li>新品上市</li>
						<li>销量从高到低</li>
						<li>销量从低到高</li>
						<li>价格从高到低</li>
						<li>价格从低到高</li>
					</ul>
				</div>
			</div>
		</div>
		<!----------------proList------------------------->
		<ul class="proList wrapper clearfix">
			<c:forEach items="${productTypeList }" var="productTypeList">
				<li>
					<a href="/market/frontPage/productDetail/${productTypeList.id}">
						<dl>
							<dt><img src="<%=basePath%>${productTypeList.imgMain}"></dt>
							<dd>${productTypeList.name }</dd>
							<dd>￥ ${productTypeList.newPrice }</dd>
						</dl>
					</a>
				</li>
			</c:forEach>
		</ul>
		<!--返回顶部-->
		<jsp:include page="gotop.jsp"></jsp:include>
		<div class="msk"></div>
		<!--footer-->
		<jsp:include page="footer.jsp"/>
		<script src="<%=basePath%>frontPage/js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="<%=basePath%>frontPage/js/public.js" type="text/javascript" charset="utf-8"></script>
		<script src="<%=basePath%>frontPage/js/nav.js" type="text/javascript" charset="utf-8"></script>
		<script src="<%=basePath%>frontPage/js/pro.js" type="text/javascript" charset="utf-8"></script>
		<script src="<%=basePath%>frontPage/js/cart.js" type="text/javascript" charset="utf-8"></script>
	</body>
</html>
